Integrand size = 26, antiderivative size = 63 \[ \int \frac {\cot ^2(e+f x)}{\left (a-a \sin ^2(e+f x)\right )^{3/2}} \, dx=\frac {\text {arctanh}(\sin (e+f x)) \cos (e+f x)}{a f \sqrt {a \cos ^2(e+f x)}}-\frac {\cot (e+f x)}{a f \sqrt {a \cos ^2(e+f x)}} \]
[Out]
Time = 0.25 (sec) , antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {3255, 3286, 2701, 327, 213} \[ \int \frac {\cot ^2(e+f x)}{\left (a-a \sin ^2(e+f x)\right )^{3/2}} \, dx=\frac {\cos (e+f x) \text {arctanh}(\sin (e+f x))}{a f \sqrt {a \cos ^2(e+f x)}}-\frac {\cot (e+f x)}{a f \sqrt {a \cos ^2(e+f x)}} \]
[In]
[Out]
Rule 213
Rule 327
Rule 2701
Rule 3255
Rule 3286
Rubi steps \begin{align*} \text {integral}& = \int \frac {\cot ^2(e+f x)}{\left (a \cos ^2(e+f x)\right )^{3/2}} \, dx \\ & = \frac {\cos (e+f x) \int \csc ^2(e+f x) \sec (e+f x) \, dx}{a \sqrt {a \cos ^2(e+f x)}} \\ & = -\frac {\cos (e+f x) \text {Subst}\left (\int \frac {x^2}{-1+x^2} \, dx,x,\csc (e+f x)\right )}{a f \sqrt {a \cos ^2(e+f x)}} \\ & = -\frac {\cot (e+f x)}{a f \sqrt {a \cos ^2(e+f x)}}-\frac {\cos (e+f x) \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\csc (e+f x)\right )}{a f \sqrt {a \cos ^2(e+f x)}} \\ & = \frac {\text {arctanh}(\sin (e+f x)) \cos (e+f x)}{a f \sqrt {a \cos ^2(e+f x)}}-\frac {\cot (e+f x)}{a f \sqrt {a \cos ^2(e+f x)}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.08 (sec) , antiderivative size = 44, normalized size of antiderivative = 0.70 \[ \int \frac {\cot ^2(e+f x)}{\left (a-a \sin ^2(e+f x)\right )^{3/2}} \, dx=-\frac {\cot (e+f x) \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},1,\frac {1}{2},\sin ^2(e+f x)\right )}{a f \sqrt {a \cos ^2(e+f x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(122\) vs. \(2(59)=118\).
Time = 1.01 (sec) , antiderivative size = 123, normalized size of antiderivative = 1.95
method | result | size |
default | \(\frac {\cos \left (f x +e \right ) \sqrt {a \left (\sin ^{2}\left (f x +e \right )\right )}\, \left (-\ln \left (\frac {2 \sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (f x +e \right )\right )}+2 a}{\cos \left (f x +e \right )}\right ) a \left (\sin ^{2}\left (f x +e \right )\right )+\sqrt {a}\, \sqrt {a \left (\sin ^{2}\left (f x +e \right )\right )}\right )}{a^{\frac {5}{2}} \left (1+\cos \left (f x +e \right )\right ) \left (\cos \left (f x +e \right )-1\right ) \sin \left (f x +e \right ) \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )}\, f}\) | \(123\) |
risch | \(-\frac {2 i \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}{a \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, f \left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )}-\frac {2 \ln \left ({\mathrm e}^{i f x}-i {\mathrm e}^{-i e}\right ) \cos \left (f x +e \right )}{f \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, a}+\frac {2 \ln \left ({\mathrm e}^{i f x}+i {\mathrm e}^{-i e}\right ) \cos \left (f x +e \right )}{f \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, a}\) | \(173\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.05 \[ \int \frac {\cot ^2(e+f x)}{\left (a-a \sin ^2(e+f x)\right )^{3/2}} \, dx=-\frac {\sqrt {a \cos \left (f x + e\right )^{2}} {\left (\log \left (-\frac {\sin \left (f x + e\right ) - 1}{\sin \left (f x + e\right ) + 1}\right ) \sin \left (f x + e\right ) + 2\right )}}{2 \, a^{2} f \cos \left (f x + e\right ) \sin \left (f x + e\right )} \]
[In]
[Out]
\[ \int \frac {\cot ^2(e+f x)}{\left (a-a \sin ^2(e+f x)\right )^{3/2}} \, dx=\int \frac {\cot ^{2}{\left (e + f x \right )}}{\left (- a \left (\sin {\left (e + f x \right )} - 1\right ) \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 220 vs. \(2 (59) = 118\).
Time = 0.38 (sec) , antiderivative size = 220, normalized size of antiderivative = 3.49 \[ \int \frac {\cot ^2(e+f x)}{\left (a-a \sin ^2(e+f x)\right )^{3/2}} \, dx=\frac {{\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} - 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )} \log \left (\cos \left (f x + e\right )^{2} + \sin \left (f x + e\right )^{2} + 2 \, \sin \left (f x + e\right ) + 1\right ) - {\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} - 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )} \log \left (\cos \left (f x + e\right )^{2} + \sin \left (f x + e\right )^{2} - 2 \, \sin \left (f x + e\right ) + 1\right ) - 4 \, \cos \left (f x + e\right ) \sin \left (2 \, f x + 2 \, e\right ) + 4 \, \cos \left (2 \, f x + 2 \, e\right ) \sin \left (f x + e\right ) - 4 \, \sin \left (f x + e\right )}{2 \, {\left (a \cos \left (2 \, f x + 2 \, e\right )^{2} + a \sin \left (2 \, f x + 2 \, e\right )^{2} - 2 \, a \cos \left (2 \, f x + 2 \, e\right ) + a\right )} \sqrt {a} f} \]
[In]
[Out]
Exception generated. \[ \int \frac {\cot ^2(e+f x)}{\left (a-a \sin ^2(e+f x)\right )^{3/2}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \frac {\cot ^2(e+f x)}{\left (a-a \sin ^2(e+f x)\right )^{3/2}} \, dx=\int \frac {{\mathrm {cot}\left (e+f\,x\right )}^2}{{\left (a-a\,{\sin \left (e+f\,x\right )}^2\right )}^{3/2}} \,d x \]
[In]
[Out]